package com.xwd.pojo;

import java.io.Serializable;

/**
 * @ClassName User
 * @Description: com.xwd.pojo
 * @Auther: xiwd
 * @Date: 2022/2/12 - 02 - 12 - 21:14
 * @version: 1.0
 */
public class User implements Serializable {
    private static final long serialVersionUID = -3643967484980631607L;
    //properties
    private String username;
    private String password;

    //setter
    public void setUsername(String username) {
        this.username = username;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    //getter
    public String getUsername() {
        return username;
    }

    public String getPassword() {
        return password;
    }

    //constructors
    public User() {
        this(null,null);
    }
    public User(String username, String password) {
        super();
        this.username = username;
        this.password = password;
    }
    //methods
    @Override
    public String toString() {
        return "User{" +
                "username='" + username + '\'' +
                ", password='" + password + '\'' +
                '}';
    }
}
